﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Easyleave.Logic.Domain
{
    [Serializable]
    [DataContract]
	public class LeaveDto
	{
        [DataMember]
        public UserDto Owner { get; set; }
        [DataMember]
        public UserDto NextRecommender { get; set; }
        [DataMember]
        public UserDto Approver { get; set; }
        [DataMember]
        public string CurrentStateName { get; set; }
        [DataMember]
        public Guid WorkflowInstanceId { get; set; }
        [DataMember]
        public string LeaveType { get; set; }
        [DataMember]
        public DateTime? FromDate { get; set; }
        [DataMember]
        public DateTime? ToDate { get; set; }
        [DataMember]
        public int? LeaveDays { get; set; }
	}

    public enum StateNames
    {
        initialState,
        submittedState,
        recommendedState,
        approvedState,
        rejectedState,
        invalidState
    }
}
